package com.stock_t;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动程序
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }, scanBasePackages = { "com.stock_t" })
@EnableTransactionManagement // 开启事务管理
@MapperScan("com.stock_t.mapper") // 扫描mapper接口
@EnableScheduling // 开启定时任务
public class StockTApplication {

    public static void main(String[] args) {
        SpringApplication.run(StockTApplication.class, args);
    }

}